func ringlog(data)
  file = fopen("log.txt","a")
  fwrite(file,date() +" " +data+nl)
  fclose(file)
